package top.lixunda.demo.seata.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 账户信息表
 * </p>
 *
 * @author Xumda
 * @since 2019-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DbAccount extends Model<DbAccount> {

    private static final long serialVersionUID=1L;

    @TableId(value = "a_id", type = IdType.AUTO)
    private Integer aId;

    @TableField("a_money")
    private BigDecimal aMoney;

    @TableField("a_create_time")
    private LocalDateTime aCreateTime;

    @TableField("a_mark")
    private String aMark;


    @Override
    protected Serializable pkVal() {
        return this.aId;
    }

}
